<html>

<head>
<script language="JavaScript">
function checkData ()
      {
            if (document.edit.category.value == "") {
                                        alert("Category cannot be blank!.")
                                        document.edit.category.focus()
                                        return false;}
                                     

                                      
                          
                        }
  

</script>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Title</title>
<?
$category=$_REQUEST['m'];
$id=$_REQUEST['d'];
?>
</head>

<body bgcolor="#330000">

<div align="center">

<table width="73%" border="0" align="left" id="table1">
	<tr>
		<td background="../mc/images/background/menuE.gif" height="34">
		<font color="#FFFF00" size="2" face="Verdana"><strong>&nbsp;<font size="4">Edit Category</font></strong></font></td>
	</tr>
	<tr>
		<td>
		<table width="100%" border="1" bordercolor="#808080" bgcolor="#EEEEEE" id="table2" style="border-collapse: collapse">
			<tr>
				<td>
				<form method="POST" name=edit action="updateCategory.php" onSubmit="return checkData()">
					<p><font size="2" face="Verdana">&nbsp;</font></p>
					<p><font size="2" face="Verdana"><strong>Category :</strong> </font>
					<font face="Verdana">
					<input type=hidden name=id value="<?=id?>">
					<input type=hidden name=oldcategory value="<?=$category?>">
				  <input type="text" name="category" size="55" value="<?=$category?>"></font></p>
					<p><font size="2" face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</font><font face="Verdana">&nbsp;&nbsp;
					<input type="submit" value="Submit" name="B1"></font><font size="2" face="Verdana">&nbsp;&nbsp;
					</font><font face="Verdana">
					<input type="reset" value="Reset" name="B2"></font></p>
				</form>
&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>
		<p align="center"><a href="listCategory.php"><font color="#FFFFFF">List Category</font></a><font face="Verdana" size="2">  
		<font color="#FFFFFF">|</font> <u> <a   onclick=history.back();><font color="#FFFFFF">Back</font></a></u></font></td>
	</tr>
</table>

</div>

</body>

</html>